package com.whfp.afs330h_sdk.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 描述设备状态的实体类
 */
public class AFS330H_DeviceStatusBean implements Parcelable {
    //RS: 00 未充电 01 充电中 10 已充满
    private String rs;
    //BV：电量百分比
    private int bv;
    //CC：10：未插入试剂卡 11：已插入试剂卡
    private String cc;
    //IC：00 未插入ID卡 01 已插入ID卡
    private String ic;

    public AFS330H_DeviceStatusBean() {
    }

    public AFS330H_DeviceStatusBean(String rs, int bv, String cc, String ic) {
        this.rs = rs;
        this.bv = bv;
        this.cc = cc;
        this.ic = ic;
    }

    protected AFS330H_DeviceStatusBean(Parcel in) {
        rs = in.readString();
        bv = in.readInt();
        cc = in.readString();
        ic = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(rs);
        dest.writeInt(bv);
        dest.writeString(cc);
        dest.writeString(ic);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<AFS330H_DeviceStatusBean> CREATOR = new Creator<AFS330H_DeviceStatusBean>() {
        @Override
        public AFS330H_DeviceStatusBean createFromParcel(Parcel in) {
            return new AFS330H_DeviceStatusBean(in);
        }

        @Override
        public AFS330H_DeviceStatusBean[] newArray(int size) {
            return new AFS330H_DeviceStatusBean[size];
        }
    };

    public String getRs() {
        return rs;
    }

    public void setRs(String rs) {
        this.rs = rs;
    }

    public int getBv() {
        return bv;
    }

    public void setBv(int bv) {
        this.bv = bv;
    }

    public String getCc() {
        return cc;
    }

    public void setCc(String cc) {
        this.cc = cc;
    }

    public String getIc() {
        return ic;
    }

    public void setIc(String ic) {
        this.ic = ic;
    }
}
